home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / ded.man < prev    next >
Encoding:
Text File  |  1989-07-01  |  9.0 KB  |  331 lines

  1.  
  2.  
  3.  
  4. DED                       User Commands                       DED
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      ded - directory editor
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ddeedd
  13.      [ -[s|r][fnsrwd] ] [ -w[f|h|Number] ] [ -xPattern ] [ dir-name|file-list ]
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      Ded displays a long-form ls directory listing on the screen
  17.      of a display terminal and allows you to 'edit' and peruse
  18.      that listing by moving up and down it, deleting, editing,
  19.      and displaying entries.  Normally the index is displayed in
  20.      one window and file perusal done in the other.  With no
  21.      string argument, the connected directory is used.  With one
  22.      string argument, the argument is interpreted as a directory
  23.      and it is used.  With multiple string arguments, they are
  24.      interpreted as filenames.
  25.  
  26.      Options, which are inherited by recursive invocations of
  27.      ded:
  28.  
  29.      --[[ssrr]][[ff||nn||ss||rr||ww||dd]]
  30.           Sort or reverse sort by Filename, filename as Number,
  31.           Size, Read date, Write date, or directory order (no
  32.           sort) respectively.  "Normal sort" is the order you are
  33.           most likely to desire, so is largest first for size,
  34.           and most recent for read and write date sorts.  Default
  35.           is to sort by filename.
  36.  
  37.      --ww[[ff||hh||NNuummbbeerr]]
  38.           Use NNuummbbeerr lines for the directory index window,
  39.           reserving the other half for quick file display.  ff
  40.           means use the full screen for the index.  hh means use
  41.           half of the screen for the index, and is the default.
  42.  
  43.      --xxPPaatttteerrnn
  44.           PPaatttteerrnn is contiguous to the --xx option and signifies
  45.           the file suffixes to be eXcluded from the display.
  46.           Separate the suffixes by the || character.  For example,
  47.           ded "-x.o|.mo" will exclude all .o and .mo files from
  48.           ded's display.  It is wise to surround this option by
  49.           quotes to prevent the shell from interpreting it.
  50.  
  51.      From left the index fields are: file mode, link count,
  52.      owner, size, write date and name.  Executable files are
  53.      tagged with a '*', directories with a '/', symbolic links to
  54.      non-directories with a '@', and symlinks to directories with
  55.      a '>'.  The bottom half of the screen is used for displaying
  56.      files via the 't'ype command and for short command execu-
  57.      tion.  If there are too many files to all fit on one window,
  58.      more windows are allocated. The 'f' and 'b' commands can be
  59.      used for stepping forward and backward windows.
  60.  
  61.  
  62.  
  63. Sprite v1.0               Utah 4/27/84                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DED                       User Commands                       DED
  71.  
  72.  
  73.  
  74.      CCoommmmaanndd lliisstt
  75.  
  76.      MMoottiioonn CCoommmmaannddss::
  77.  
  78.      <cr>
  79.      <lf>
  80.      j
  81.      ^N   steps to the next file.
  82.  
  83.      -
  84.      <backspace>
  85.      k
  86.      ^P   steps to previous file.
  87.  
  88.      ^F
  89.      ^V
  90.      f    goes forward a window, leaving a one line overlap.
  91.  
  92.      ^B
  93.      Meta-V
  94.      b    goes backward a window, leaving a one line overlap.
  95.           Meta-V only works at Utah.
  96.  
  97.      1    goes to the first entry of the first screen.
  98.  
  99.      G    goes to the last entry of the last screen.
  100.  
  101.      /    does a forward regular-expression search of the
  102.           filenames starting with the current entry, and posi-
  103.           tions the cursor on that entry.  If nothing is entered
  104.           to the prompt, the last regular expression is used, and
  105.           the search starts at the _n_e_x_t entry.
  106.  
  107.      ?    does a reverse regular expression search.
  108.  
  109.      GGeenneerraall CCoonnttrrooll::
  110.  
  111.      Q
  112.      q    exits the program, displaying files marked for deletion
  113.           and requiring confirmation before deleting them.  If no
  114.           confirmation is given (typing anything other than y),
  115.           ded goes back to its display.  When many files are to
  116.           be deleted, ded does the deletions asyncronously unless
  117.           it is top-level and can be ^Z'ed and backgrounded by
  118.           the user.
  119.  
  120.      x    aborts completely out of ded. No deletions are done.
  121.  
  122.      ^Z   stops ded.
  123.  
  124.      h    displays a help file.
  125.  
  126.  
  127.  
  128.  
  129. Sprite v1.0               Utah 4/27/84                          2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DED                       User Commands                       DED
  137.  
  138.  
  139.  
  140.      !
  141.      %    prompts for a system command to invoke.  Unless escaped
  142.           via '\', all %% characters in the command itself are
  143.           replaced with the relative pathname of the current
  144.           entry, all ## chars are replaced with just the trailing
  145.           filename component (what you see on the screen), and
  146.           all @@ characters are replaced with the relative name of
  147.           the directory whose index is currently being displayed.
  148.           "Relative" means relative to your current working
  149.           directory, which does not change as you descend a
  150.           hierarchy.  When invoked via '!' the command is exe-
  151.           cuted in the other window, if it exists, and can result
  152.           in garbaging of the display if it has much output.
  153.           This is designed for "action" commands, e.g. "mv".
  154.           When invoked via '%' the screen is cleared before exe-
  155.           cution and re-displayed afterwards.
  156.  
  157.      .    Repeats the previous !! or %% shell command, substituting
  158.           from the current entry for any special chars (%#@) in
  159.           the original command.
  160.  
  161.      IInnddeexx DDiissppllaayy
  162.  
  163.      l    re-stats the current entry and redisplays that line.
  164.           If the file has disappeared, a '-' sign appears next to
  165.           the file name.
  166.  
  167.      L    all the entries on the current screen are re-stat'ed
  168.           and redisplayed.
  169.  
  170.      ^L   refreshes the screen.
  171.  
  172.      r
  173.      s    sorts the file list by various fields: filename,
  174.           filename treated as a number, read date, size, write
  175.           date.  Only the first letter (e.g. f, n, r, s, or w) is
  176.           required after giving the r and s commands. s sorts in
  177.           increasing alphabetic, decreasing size, newest to old-
  178.           est dates. r reverses the sense of s. For the f, n, s,
  179.           and w orders, the date field is the write date. For the
  180.           r subcommand, the date field is the read date. Whenever
  181.           a sort is done, you are positioned at the top of the
  182.           list afterwards.  A proposed sort can be aborted via
  183.           ^G.
  184.  
  185.      AAccttiioonnss oonn ccuurrrreenntt eennttrryy
  186.  
  187.      d    marks the current entry for deletion. Upon exit and
  188.           confirmation, this entry will be deleted.  WARNING:
  189.           this includes directories!  If it is a directory,
  190.           everything in it and underneath it will be removed.
  191.           For symbolic links, only the link is removed, not its
  192.  
  193.  
  194.  
  195. Sprite v1.0               Utah 4/27/84                          3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. DED                       User Commands                       DED
  203.  
  204.  
  205.  
  206.           target.
  207.  
  208.      u    undeletes the current entry, if it was previously
  209.           marked for deletion.
  210.  
  211.      t
  212.      T    types the file out to the terminal.  Little 't' speci-
  213.           fies that in two-window mode, the bottom window be
  214.           used, pausing after each screenful, and wrapping long
  215.           lines.  The type-out may be interrupted by the "Inter-
  216.           rupt" character (^C), or by 'q' when the file is
  217.           displayed in the bottom window.  Capital 'T' says to
  218.           use the full screen; essentially just a "cat" of the
  219.           file.
  220.  
  221.      m    runs the local pager upon the current file.  As distri-
  222.           buted, the default is Berkeley's mmoorree program.
  223.  
  224.      e    runs the editor defined in your EDITOR environment
  225.           variable upon the current file.  If EDITOR is not
  226.           defined, "vi" ("little emacs" at Utah) is used.  How-
  227.           ever, if the current file is a directory or a symlink
  228.           to a directory it is not edited, but rather, a recur-
  229.           sive ded is done upon that directory.  In this manner,
  230.           you can examine the contents of that directory and thus
  231.           move down the directory hierarchy.
  232.  
  233.      p
  234.      P    prints the current file on the line-printer.  At Utah,
  235.           'p' prints in small font (pr2) while 'P' gets normal
  236.           font size.
  237.  
  238. FFIILLEESS
  239.      /usr/local/lib/ded.hlp    help file for ? and h
  240.  
  241. SSEEEE AALLSSOO
  242.      ls(1)
  243.  
  244. DDIIAAGGNNOOSSTTIICCSS
  245.      The error messages are basically self-explanatory.
  246.  
  247. AAUUTTHHOORRSS
  248.      Stuart Mclure Cracraft
  249.      Jay Lepreau
  250.  
  251. BBUUGGSS
  252.      Should use curses!
  253.  
  254.      Needs a command to move the current entry to the top of the
  255.      screen.
  256.  
  257.      Would be nice to be able to change file modes by editing the
  258.  
  259.  
  260.  
  261. Sprite v1.0               Utah 4/27/84                          4
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. DED                       User Commands                       DED
  269.  
  270.  
  271.  
  272.      mode field directly.
  273.  
  274.      When tabs are in a line displayed via the 't' command, the
  275.      line may wrap one character early.
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327. Sprite v1.0               Utah 4/27/84                          5
  328.  
  329.  
  330.  
  331.